home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / Source / Foundation / OS / ZExitAction.h < prev    next >
Text File  |  1997-04-13  |  971b  |  43 lines

  1. /*
  2.  *  File:       ZExitAction.h
  3.  *  Summary:       Mixin for objects that need to do cleanup when the app exists abnormally.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1997 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <1>     4/13/97    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16.  
  17. // ===================================================================================
  18. //    class MExitAction
  19. // ===================================================================================
  20. class MExitAction {
  21.  
  22. //-----------------------------------
  23. //    Initialization/Destruction
  24. //
  25. public:
  26.     virtual                   ~MExitAction();
  27.                         
  28.                         MExitAction();
  29.  
  30. //-----------------------------------
  31. //    API
  32. //
  33. public:
  34.     static    void         DoExitActions();
  35.                         // Called by FragTerm when app exits abnormally (eg via ExitToShell,  
  36.                         // exit, abort, etc).
  37.             
  38. protected:
  39.     virtual void         OnAbnormalExit() = 0;
  40. };
  41.  
  42.  
  43.